package com.ms.p2p.dao;


import com.ms.p2p.entity.content.Advert;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface AdvertDao extends  CrudDao<Advert>{

    List<Advert> findPager(@Param("date_begin") String addDate_begin, @Param("date_end") String addDate_end, @Param("isDisplay") Integer dis_play, @Param("category") Integer category, @Param("begin") int begin, @Param("size") Integer pageSize);

    int findCount(@Param("date_begin") String addDate_begin, @Param("date_end") String addDate_end, @Param("isDisplay") Integer dis_play, @Param("category") Integer category);

}
